<template>
  <van-nav-bar title="标题" left-arrow @click-left="onClickLeft" @click-right="onClickRight">
    <template #right>
      <van-icon name="search" size="18" />
    </template>
  </van-nav-bar>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()

const onClickLeft = () => {
  router.go(-1)
}
</script>
